package cn.izeno.wx.models

import org.dom4j.Document

data class VoiceMessage(
    var mediaId: String = "",
    var format: String = "",
    var recognition: String = ""
) : Message(msgType = MSG_TYPE_VOICE) {
  override fun parseXML(document: Document) {
    super.parseXML(document)
    mediaId = document.selectSingleNode("/xml/MediaId")?.text.orEmpty()
    format = document.selectSingleNode("/xml/Format").text.orEmpty()
    recognition = document.selectSingleNode("/xml/Recognition")?.text.orEmpty()
  }

  override fun toXMLString(): String {
    TODO("not implement")
  }
}
